package demo06;

/**
 * @author: WangPeng
 * @createTime: 2022/10/25 17:32
 * @description:
 * @version: v1.0
 */
public class Demo06Test {
    public static void main(String[] args) {
        Integer fun1 = fun(12);

        String fun2 = fun("haha");
    }
    //泛型方法
    public static <T> T fun(T t){
        System.out.println("~~~~~~~~"+t);
        return t;
    }
}
